home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFBIND
/
VQMOUSE.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
1KB
|
45 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Sample mouse button state.
;*------------------------------------------------------------------------
globl _vq_mouse
_vq_mouse:
; .cargs #8,handle.w,status.l,x.l,y.l
handle = 8
status = 10
x = 14
y = 18
link a6,#-4 ;* Allocate ptsout[2].
; VContrl #124
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
clr.l -(sp) ; contrl[3,2]
clr.w -(sp) ; contrl[1]
move.w #124,-(sp) ; contrl[0]
pea -4(a6) ;* -> ptsout
move.l status(a6),-(sp) ;* -> intout
subq.l #8,sp ;* -> ptsin, intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.l x(a6),a0 ;* Return mouse x
move.w -4(a6),(a0) ;* from ptsout[0].
move.l y(a6),a0 ;* Return mouse y
move.w -2(a6),(a0) ;* from ptsout[1].
unlk a6
rts
end